const db = uniCloud.database()
// 这个是链接记录
exports.userSocketCollection = db.collection('wschat-user-socket')

exports.sessionTypes = {
	user: 'user',
	group: 'group'
}

exports.webSocketMessageActions = {
	sync: "SYNC",
	syncMessage: 'SYNC_MESSAGE',
	syncOnlineStatus: 'SYNC_ONLINE_STATUS'
}

exports.messageTypes = {
	text: "TEXT",
	joinGroup: "JOIN_GROUP",
	leaveGroup: "LEAVE_GROUP",
	system: "SYSTEM"
}